{#
  This Source Code Form is subject to the terms of the Mozilla Public
  License, v. 2.0. If a copy of the MPL was not distributed with this
  file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

{% macro picto_icon(image) -%}
  {{ srcset_image(image, "width-{40}", sizes="40px", alt="", loading="lazy") }}
{%- endmacro %}


{% macro split_media(image) %}
  {{ srcset_image(
    image,
    "width-{200,400,600,800,1000,1200,1400}",
    class="mzp-c-split-media-asset",
    sizes="
      (min-width: 768px) 50vw,
      (min-width: 1440px) 680px,
      100vw
    ",
    width=(image.width / 2)|round|int,
    alt="",
    loading="lazy"
  ) }}
{%- endmacro %}
